#ifndef VOLUMEFORM_H
#define VOLUMEFORM_H

#include <QWidget>
#include <QPaintEvent>

namespace Ui {
class volumeForm;
}

class volumeForm : public QWidget
{
    Q_OBJECT

public:
    explicit volumeForm(QWidget *parent = nullptr);
    ~volumeForm();

    //绘图
    void paintEvent(QPaintEvent *event);
    bool eventFilter(QObject *obj, QEvent *event);
    void setvolume();
    void closeEvent(QCloseEvent *event);
    void on_pushButton_2_clicked();
    void updateVolumeIcon();

signals:
    void getStatus(bool state);
    void setVolume(int num);

private:
    Ui::volumeForm *ui;
    bool  state;
    int volume;

};

#endif // VOLUMEFORM_H
